<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="<?=base_url('static/index/js/jquery-1.10.2.min.js')?>"></script>
<title>成功提示信息</title>
</head>
<body>
	<table width="500" border="1" align="center" cellpadding="3" cellspacing="0">
	 	<tr>
	 		<th align="center" bgcolor="#cccccc">成功信息提示</th>
	 	</tr>
	 	<tr>
	  		<td>
	  			<?=$message?><br />
	   			<span id="mes">3</span>秒后返回指定页面！<br />
	   		</td>
	 	</tr>
	</table>
	<script type="text/javascript">
		var i=3;
		var intervalid;
		intervalid = setInterval("fun()",1000);
		function fun(){
			if(i==0){
				location.href="<?php if(isset($url)){
					echo $url;
				}else{
					echo $_SERVER['HTTP_REFERER'];
				} ?>";
				clearInterval(intervalid);
			}
			$("#mes").html(i);
			i--;
		}
	</script>
</body>
</html>